Remove the window from the toplevel_list here rather in destroy. While
authorOwen Taylor <otaylor@redhat.com>
Sat, 13 Mar 2004 20:45:15 +0000 (20:45 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 13 Mar 2004 20:45:15 +0000 (20:45 +0000)
Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwindow.c (gtk_window_destroy): Remove
        the window from the toplevel_list here rather in destroy.
        While this is theoretically speaking wrong, it fits
        in better with the current reality that destroyed
        widgets are not reusable. (#126808, Michael Natterer)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkwindow.c

index 486506e65920d4b8784cf6d182f304c2dba42fb0..a63c1247f41efa9ed7306b9acbea536b6d215fbc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_destroy): Remove
+       the window from the toplevel_list here rather in destroy.
+       While this is theoretically speaking wrong, it fits
+       in better with the current reality that destroyed
+       widgets are not reusable. (#126808, Michael Natterer)
+
 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
index 486506e65920d4b8784cf6d182f304c2dba42fb0..a63c1247f41efa9ed7306b9acbea536b6d215fbc 100644 (file)
@@ -1,3 +1,11 @@
+Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_destroy): Remove
+       the window from the toplevel_list here rather in destroy.
+       While this is theoretically speaking wrong, it fits
+       in better with the current reality that destroyed
+       widgets are not reusable. (#126808, Michael Natterer)
+
 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
index 486506e65920d4b8784cf6d182f304c2dba42fb0..a63c1247f41efa9ed7306b9acbea536b6d215fbc 100644 (file)
@@ -1,3 +1,11 @@
+Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_destroy): Remove
+       the window from the toplevel_list here rather in destroy.
+       While this is theoretically speaking wrong, it fits
+       in better with the current reality that destroyed
+       widgets are not reusable. (#126808, Michael Natterer)
+
 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
index 486506e65920d4b8784cf6d182f304c2dba42fb0..a63c1247f41efa9ed7306b9acbea536b6d215fbc 100644 (file)
@@ -1,3 +1,11 @@
+Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_destroy): Remove
+       the window from the toplevel_list here rather in destroy.
+       While this is theoretically speaking wrong, it fits
+       in better with the current reality that destroyed
+       widgets are not reusable. (#126808, Michael Natterer)
+
 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
index 486506e65920d4b8784cf6d182f304c2dba42fb0..a63c1247f41efa9ed7306b9acbea536b6d215fbc 100644 (file)
@@ -1,3 +1,11 @@
+Sat Mar 13 15:19:17 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_destroy): Remove
+       the window from the toplevel_list here rather in destroy.
+       While this is theoretically speaking wrong, it fits
+       in better with the current reality that destroyed
+       widgets are not reusable. (#126808, Michael Natterer)
+
 Sat Mar 13 21:47:47 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
index 83d8c1cb73af734a1d9077254ba328013e562614..f80833d449394a031128911a4b760fff0501f9a7 100644 (file)
@@ -3500,6 +3500,8 @@ gtk_window_destroy (GtkObject *object)
 {
   GtkWindow *window = GTK_WINDOW (object);
   
+  toplevel_list = g_slist_remove (toplevel_list, window);
+
   if (window->transient_parent)
     gtk_window_set_transient_for (window, NULL);
 
@@ -3551,8 +3553,6 @@ gtk_window_finalize (GObject *object)
 {
   GtkWindow *window = GTK_WINDOW (object);
 
-  toplevel_list = g_slist_remove (toplevel_list, window);
-
   g_free (window->title);
   g_free (window->wmclass_name);
   g_free (window->wmclass_class);